package levels
{
	import org.flixel.*;
	import utilities.Wave;
	
	import states.GameState;
	import enemies.*;
	import interactions.*;
	import items.*;
	import treasures.*;
	
	/**
	 * ...
	 * @author JAC
	 */
	public class Level_13 extends GameState
	{
		override public function create():void
		{
			super.create();
			
			_maze.load(MazeData.second_wave);
			
			Player.spawnAt(14, 10);
			
			Tracker.lives = 3;
			Tracker.mapScore = 1000;
			Tracker.minScore = 4;
			
			// Add a second set as wave
			addEntity(new Slow(14, 7));
			addEntity(new SpeedBooster(14, 13));
			
			addEntity(new RockThrow(27, 9));
			addEntity(new RockThrow(1, 11));
			
			addEntity(new Trapdoor(9, 11));
			addEntity(new Trapdoor(19, 9));
		
			addEntity(new LootBag(11, 17));
			addEntity(new LootBag(17, 17));
			
			addEntity(new LootBag(11, 5));
			addEntity(new LootBag(17, 5));
			
			addEntity(new LootBag(7, 13));
			addEntity(new LootBag(21, 7));

			addEntity(new LootBag(1, 9));
			addEntity(new LootBag(27, 11));
			
			var wave:Wave = new Wave();
			wave.addEntity(new Robber(0, 5));
			wave.addEntity(new Robber(28, 5));
			wave.addEntity(new Robber(4, 0));
			wave.addEntity(new Robber(24, 0));
			addWave(wave);
			wave = new Wave();
			
			wave.addEntity(new Exorcist(14, 0));
			wave.addEntity(new Exorcist(14, 20));
			addWave(wave);
			
			wave = new Wave();
			wave.addEntity(new Brute(0, 15));
			wave.addEntity(new Brute(28, 15));
			addWave(wave);
			
			Tracker.maxWave = 3;
			
			gameStart();
		}
	}
}